package com.springboot.chongwu.controller.app;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.springboot.chongwu.entity.Lunbotu;
import com.springboot.chongwu.qpage.QPage;
import com.springboot.chongwu.service.ILunbotuService;
import com.springboot.chongwu.util.ResultView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 轮播图 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-09-25
 */
@RestController
@RequestMapping("/api/front/lunbotu")
public class AppLunbotuController {

    @Autowired
    private ILunbotuService service;


    /**
     * 获取轮播图
     * @return
     */
    @GetMapping("/getSelect")
    public ResultView getSelect() {
        QueryWrapper<Lunbotu> queryWrapper=new QueryWrapper<>();
        List<Lunbotu> sysJydzList=this.service.list(null);
        return ResultView.ok(sysJydzList);
    }




}
